'''
from pyecharts.charts import Pie
from pyecharts import options
# 饼图数据类型  [("类型1",30),("类型2",30),("类型3",30),("类型4",30)....]
data=[("南昌",20),("北京",50),("上海",80),("成都",40)]
# 创建饼图图像
pie=Pie()
# 添加数量  同时添加单位
pie.add("单位/个",data)
# 设置图表标题
pie.set_global_opts(title_opts=options.TitleOpts(title="各城市的岗位数量图"))
# 渲染页面
pie.render("pienum.html")
'''
from pyecharts.charts import Liquid,Grid
from pyecharts import options
l1=(Liquid()
    .add("北京",[0.4,0.4],center=["35%","25%"])
    .set_global_opts(title_opts=options.TitleOpts(title="各城市岗位量占比图")))
l2=(Liquid()
    .add("南昌",[0.2,0.2],center=["65%","25%"]))
l3=(Liquid()
    .add("九江",[0.1,0.1],center=["35%","75%"]))
l4=(Liquid()
    .add("成都",[0.3,0.3],center=["65%","75%"]))
grid=(Grid().add(l1, grid_opts=options.GridOpts()).add(l2, grid_opts=options.GridOpts())
      .add(l3, grid_opts=options.GridOpts()).add(l4, grid_opts=options.GridOpts()))
grid.render("piera.html")